package org.water.base.entity;
/**
 * 日志bean
 * @author qzy
 *
 */
public class LogBean {
	
	/**
	 * 线程
	 */
	private Long execThreadId=0l;

	/**
	 * 请求地址
	 */
	private String url=null;
	/**
	 * 开始访问时间
	 */
	private Long startTime=0l;
	/**
	 * 结束访问时间
	 */
	private Long endTime=0l;
	/**
	 * 地址访问间隔时间,以微秒为单位
	 */
	private Long urlIntervalTime=0l;
	/**
	 * 用户id
	 */
	private String userId=null;
	/**
	 * 访问用户
	 */
	private String userName=null;
	/**
	 * 请求参数
	 */
	private String params=null;
	/**
	 * 用户访问客户端ip
	 */
	private String ip=null;
	/**
	 * 客户端机器名
	 */
	private String hostName=null;
	/**
	 * 执行sql
	 */
	private String sql=null;
	/**
	 * 执行时间,以纳秒为单位  (1秒=1000毫秒 1毫秒=1000微秒 1微秒=1000纳秒)
	 */
	private Long sqlExcuteTime=0l;
	/**
	 * 模块名称
	 */
	private String moduleName=null;
	/**
	 * 操作描述
	 */
	private String oprateDesc=null;
	/**
	 * 请求头
	 */
	private String requestHeader=null;
	/**
	 * 请求头
	 */
	private String userAgent=null;
	/**
	 * 返回类型
	 */
	private String responseContentType=null;
	/**
	 * 请求是否为页面   1-是,0-否
	 */
	private Integer page=0;
	/**
	 * 页面返回视图
	 */
	private String pageView=null;
	/**
	 * 返回状态
	 */
	private Integer responseStatus=null;
	
    
	public Long getExecThreadId() {
		return execThreadId;
	}
	public void setExecThreadId(Long execThreadId) {
		this.execThreadId = execThreadId;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public Long getStartTime() {
		return startTime;
	}
	public void setStartTime(Long startTime) {
		this.startTime = startTime;
	}
	public Long getEndTime() {
		return endTime;
	}
	public void setEndTime(Long endTime) {
		this.endTime = endTime;
	}
	public Long getUrlIntervalTime() {
		urlIntervalTime=endTime-startTime;
		return urlIntervalTime;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getParams() {
		return params;
	}
	public void setParams(String params) {
		this.params = params;
	}
	public String getIp() {
		return ip;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
	public String getSql() {
		return sql;
	}
	public void setSql(String sql) {
		this.sql = sql;
	}
	public Long getSqlExcuteTime() {
		return sqlExcuteTime;
	}
	public void setSqlExcuteTime(Long sqlExcuteTime) {
		this.sqlExcuteTime = sqlExcuteTime;
	}
	public String getModuleName() {
		return moduleName;
	}
	public void setModuleName(String moduleName) {
		this.moduleName = moduleName;
	}
	public String getOprateDesc() {
		return oprateDesc;
	}
	public void setOprateDesc(String oprateDesc) {
		this.oprateDesc = oprateDesc;
	}
	public String getRequestHeader() {
		return requestHeader;
	}
	public void setRequestHeader(String requestHeader) {
		this.requestHeader = requestHeader;
	}
	public String getResponseContentType() {
		return responseContentType;
	}
	public void setResponseContentType(String responseContentType) {
		this.responseContentType = responseContentType;
	}
	public Integer getPage() {
		return page;
	}
	public void setPage(Integer page) {
		this.page = page;
	}
	public String getUserAgent() {
		return userAgent;
	}
	public void setUserAgent(String userAgent) {
		this.userAgent = userAgent;
	}
	public String getPageView() {
		return pageView;
	}
	public void setPageView(String pageView) {
		this.pageView = pageView;
	}
	public Integer getResponseStatus() {
		return responseStatus;
	}
	public void setResponseStatus(Integer responseStatus) {
		this.responseStatus = responseStatus;
	}
	public String getHostName() {
		return hostName;
	}
	public void setHostName(String hostName) {
		this.hostName = hostName;
	}
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	
	
	
}
